package com.fisher.checker.product;

public class Product {
    //产品编号
    private String productNo;

    private String projectNo;
    //二维码识别简码
    private String brevityCode;

    //图片的drawable
    private int img;

    private String productName;

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProjectNo() {
        return projectNo;
    }

    public void setProjectNo(String projectNo) {
        this.projectNo = projectNo;
    }

    public int getImg() {
        return img;
    }

    public void setImg(int img) {
        this.img = img;
    }

    public Product(String productNo, String projectNo, String brevityCode, int img, String productName, Electron electron) {
        this.productNo = productNo;
        this.projectNo = projectNo;
        this.brevityCode = brevityCode;
        this.img = img;
        this.electron = electron;
        this.productName = productName;
    }


    //电子件信息
    private Electron electron;
    public String getProductNo() {
        return productNo;
    }

    public void setProductNo(String productNo) {
        this.productNo = productNo;
    }

    public String getBrevityCode() {
        return brevityCode;
    }

    public void setBrevityCode(String brevityCode) {
        this.brevityCode = brevityCode;
    }

    public boolean isHasElectron() {
        return electron != null;
    }

    public Electron getElectron() {
        return electron;
    }

    public void setElectron(Electron electron) {
        this.electron = electron;
    }
}
